<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>左侧导航</title>
<load href="__PUBLIC__/Css/admin_style.css"/>
<load href="__PUBLIC__/Js/jquery.js"/>
<script>
//切换菜单
function menu_change(obj,menu){
  var child_menu_num="{$syscolumn|count}";
  for(var i=1;i<=child_menu_num;i++){
     if(menu.substring(4)==i){
	     $("#"+menu).show();
	 }else{
	     $("#menu"+i).hide();
	 }
  }
}
//隐藏所有子菜单
var hide_all_child_menu=function(){
  var child_menu_num="{$syscolumn|count}";
  for(var i=1;i<=child_menu_num;i++){
     var menuid="menu"+i;
	 $("#"+menuid).hide();
  }
};
$(function(){
    hide_all_child_menu();
});
</script>

<style type="text/css">
<!--
body {
	margin-left: 8px;
	margin-top: 5px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style></head>

<body >
<table border="0" cellpadding="0" cellspacing="0">
<tr><td height="15"></td></tr>
</table>
<if condition="empty($syscolumn) eq true">对不起,还没有导航<else/>
<volist name="syscolumn" id="vo" key="k">
<table border="0" cellspacing="0" cellpadding="0" >
<notempty name="vo['p']">
  <tr>
    <td background="__PUBLIC__/images/admin/admin_title_bg_show.gif" class="menu_hide" onClick="menu_change(this,'menu{$k}');">{$vo["p"]["col_name"]}</td>
  </tr>
  <tr><td>
  <div class="sec_menu"  id="menu{$k}">
                  <ul style="padding:0px; margin:0px; list-style-type:none; width:158px;">
                   <volist name="vo['c']" id="v" >
                        <li style="width:75px;float:left;margin-right:4px; margin-top:10px; margin-bottom:8px;"><a href="{$v.col_url}" target="mainFrame">{$v.col_name}</a></li>                   </volist>
                  </ul>
  </div>
                </td>
  
  </tr>
 <else/>
  <tr><td>
  <div class="sec_menu"  id="menu{$k}">
                  <ul style="padding:0px; margin:0px; list-style-type:none; width:158px;">
                   <volist name="vo['c']" id="v" >
                        <li style="width:75px;float:left;margin-right:3px; margin-top:10px; margin-bottom:8px;"><a href="{$v.col_url}" target="mainFrame">{$v.col_name}</a></li>                   </volist>
                  </ul>
  </div>
                </td>
  
  </tr>
 </notempty>
  </table>
  <span style="height:1px;"></span>
</volist>
  </if>
  <table  border="0" cellpadding="0" cellspacing="0" class="menu_show">
  <tr>
    <td>@{//$webname}中商网站内容管理系统</td>
  </tr>
</table>
</body>
</html>
